
<#macro regError>
	<span class="error"><@spring.showErrors"<br>"/></span>
</#macro>

<#macro box class id title>
	<div class="${class}">	  
	<h2>${title}</h2>
	  <div class="right"></div>
	  <div id="${id}" class="boxContent">		
		<#nested>		
	  </div>	  
	</div>
</#macro>

<#macro mapArea>
	<div id="mapsearch">
		<input type="text" size="50" name="location" value="Enter any address">
		<input type="submit" value="Find It">
	</div>

	<div id="maparea">
		map
	</div>
</#macro>



<#macro loginForm>

	 <form id="upForm" class="header_account-UserAndPass" action="<@spring.url "/j_acegi_security_check"/>" method="POST" style="display: none">
		<fieldset>			
		 <p>
			 <label for="j_username"><input type='text' name='j_username' id = 'j_username'><@spring.message "login.1.user"/>
			 </label>
		 <p>
			 <label for="j_password"><input type='password' name='j_password' id = 'j_password'><@spring.message "login.1.pass"/>
			 </label>
		 <input name="login" value="<@spring.message "login.1.button"/>" type="submit">
		</fieldset>
	 </form>

	<script language="javascript" type="text/javascript"> 
	  document.getElementById('upForm').style.display='block';
	      
	  function formvalidation(){    
	  		document.getElementById('j_username').value = document.getElementById('j_username2').value;
	  }
	   
	</script>	 	
</#macro>

<#macro signupNow>
	<h2 id="signupNow">
	 	<a href="<@spring.url "/signupifpossible.html"/>"><@spring.message "login.signup"/></a>
	</h2>
</#macro>

<#macro pngImage src width height>
	<#if iePre7?exists>
		<div>
			<span style="display:inline-block;width:${width}px;height:${height}px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<@spring.url "${src}"/>', sizingMethod='scale')"></span>
		</div>
	<#else>
		<img src=<@spring.url "${src}"/> width=${width} height=${height} border=0/>
	</#if>
</#macro>

